// 商户管理接口
import request from '@/utils/request';

// seleceids?pageNum=1&pageSize=3
//获取商户管理列表
export const reqMerchant = (name, address, pageNum, pageSize, id) => request({
  url: `/selectmerchant?name=${name}&address=${address}&pageNum=${pageNum}&pageSize=${pageSize}&id=${id}`,
  method: 'POST',
})

//获取商户排名列表
export const reqMerchantID = (pageNum, pageSize) => request({
  url: `/seleceids?pageNum=${pageNum}&pageSize=${pageSize}`,
  method: 'GET',
})


// 获取商户详情
export const reqMerchantDetails = (id, pageNum, pageSize) => request({
  url: `/selectmerchant?id=${id}&pageNum=${pageNum}&pageSize=${pageSize}`,
  method: 'GET',
})